import request from '@/utils/request'

// 查询his_house列表
export function listHisHouse(query) {
  return request({
    url: '/community/hisHouse/list',
    method: 'get',
    params: query
  })
}

// 查询统计信息
export function statistics(costId) {
  return request({
    url: '/community/hisHouse/statistics/' + costId,
    method: 'get'
  })
}

// 查询his_house详细
export function getHisHouse(hisId) {
  return request({
    url: '/community/hisHouse/' + hisId,
    method: 'get'
  })
}

// 新增his_house
export function addHisHouse(data) {
  return request({
    url: '/community/hisHouse',
    method: 'post',
    data: data
  })
}

// 修改his_house
export function updateHisHouse(data) {
  return request({
    url: '/community/hisHouse',
    method: 'put',
    data: data
  })
}

// 删除his_house
export function delHisHouse(hisId) {
  return request({
    url: '/community/hisHouse/' + hisId,
    method: 'delete'
  })
}

// 导出his_house
export function exportHisHouse(query) {
  return request({
    url: '/community/hisHouse/export',
    method: 'get',
    params: query
  })
}
